home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
272_01
/
weekday.doc
< prev
next >
Wrap
Text File
|
1987-07-15
|
860b
|
40 lines
NAME
weekday -- Determine the day of the week form the date
SYNOPSIS
value = weekday(month, day, year);
int value; returns 0-6
int month; number of month 1-12
int day; number of date 1-31
int year; year starting with 1980
DESCRIPTION
This function returns the number of the day in the week for any
date from January 1, 1980. Sunday is day 0, and Saturday is day 6.
EXAMPLE
for July 2, 1986:
int value;
value = weekday(7, 2, 1986);
value for this date will be 3 (Wednesday)
You may wish me a Happy Birthday.
This function is found in SMDLx.LIB for the Datalight Compiler.